argc & argv*

#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>
int main(int argc, char *argv[])
{
int i=0;
for(i;i<argc;i++){
printf("%s\n", *argv[i]);
}
printf("\nprint all!!\n");
return 0;
}

celina@ubuntuserver:~/celina/test$ ./argv_test hello my name is csian

./argv_test

hello

my

name

is

csian


argc: 인자 갯수
argv 인자